package com.design.yjx.proxy.rmi.service;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * @author yuanjianxin
 * @date 2017/8/25 11:23
 *
 *
 * 接口实现类需要继承UnicastRemoteObject类,同时构造方法需抛出RemoteException
 */
public class MyRemoteImpl extends UnicastRemoteObject implements MyRemote {


    public MyRemoteImpl() throws RemoteException {
    }

    @Override
    public String SayHello() throws RemoteException {
        return "this is my first rmi demo!";
    }
}
